﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication10.App_Code;

namespace WebApplication10
{
    public partial class MasterUpdateCL : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Update_Click(object sender, EventArgs e)
        {

        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            CoverLetter s = new CoverLetter();
            s.CoverLetterID =Convert.ToInt32(TextBox1.Text);
            s.Title = txtResumeTitleup.Text;
            s.Institution = Education_Schoolup.Text ;
            s.Grade = EducationGradeup.Text;
            s.Description = txtResumeup.Text ;
            s.Course = EducationCourseup.Text ;


               CoverLetter.UpdateCoverLetter(s);
        }

        protected void TextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            CoverLetter s = CoverLetter.GetCoverLetterByID(TextBox1.Text);
            txtResumeTitleup.Text = s.Title;
            Education_Schoolup.Text = s.Institution;
                EducationCourseup.Text= s.Course;
            EducationGradeup.Text=s.Grade;
            txtResumeup.Text=s.Description;
         
            
        }
    }
}